package com.qimei.onerice.service;

import com.qimei.onerice.entity.Order;
import com.qimei.onerice.entity.OrderDetail;

import java.util.List;

public interface OrderDetailService {
	OrderDetail getOrderDetailById(int OrderDetailId);
	List<OrderDetail> getOrderDetailListByOrderId(int orderId);
	boolean deleteOrderDetail(int OrderDetailId);
	boolean updateOrderDetail(OrderDetail OrderDetail);
	boolean addOrderDetail(OrderDetail OrderDetail);
	OrderDetail getOrderDetailByDishId(int orderId, int dishId);
	boolean updateQuantity(int orderDetailId, int quantity);
}
